import pytest
import json

from config import BASE_PATH


def read_json_file(file_name):
    with open(file_name, "r", encoding="utf8") as f:
        json_data = json.load(f)
        data_list = []
        for dict_data in json_data:
            val = dict_data.values()
            tmp = tuple(val)
            data_list.append(tmp)

        return data_list


if __name__ == '__main__':
    filename = BASE_PATH + "/data/ihrmLoginData.json"
    res = read_json_file(filename)
    print(res)
